import { SuperEntity } from '../common/types'
interface Role extends SuperEntity {
  code: string
  name: string
  type: number
}

interface UserInfo extends SuperEntity {
  username: string
  password: string
  nickname: string
  departmentId: number
  department: string
  headImgUrl: string
  mobile: string
  email: string
  sex: number
  enabled: boolean
  roles: Role[]
  roleId: string
  oldPassword: string
  newPassword: string
  currentProjectId: number
  proName: string
  proRoles: Role[]
}

interface Role extends SuperEntity {
  code: string
  name: string
  type: number
  userId?: number
}

export { UserInfo, Role }
